package com.antler.smt.service.admin;

import com.antler.smt.enums.ResultCodeEnum;
import com.antler.smt.request.admin.JoinSupplierReq;
import com.antler.smt.response.base.Result;

/**
 * 后台订单接口
 *
 * @author zhangyi
 * @date 2018/3/28 14:00
 */
public interface OrderService {

    /**
     * 根据订单主键更新其中的服务商id
     *
     * @param req
     * @return
     */
    Result<ResultCodeEnum> updateOrderSupplierId(JoinSupplierReq req);

    /**
     * 审核支付的金额
     *
     * @param orderId
     * @param payAuditType
     * @param payAuditAmmont
     * @param purchaserId
     * @return
     */
    Result<ResultCodeEnum> auditPayment(Long orderId,Integer payAuditType,Long payAuditAmmont,Long purchaserId);

    /**
     *  项目专员付款给服务商
     *
     * @param orderId
     * @return
     */
    Result<ResultCodeEnum> paymentSupplier(Long orderId);

    /**
     * 填写对采购商的价格
     *
     * @param orderId
     * @param price
     * @return
     */
    Result updatePurchaserPrice(Long orderId,Long price);
}